package configs

import (
	"0227zk/common/initialize"
	"0227zk/common/model"
	"fmt"
)

func MysqlInit() {
	err := initialize.DB.AutoMigrate(&model.User{})
	if err != nil {
		fmt.Println("数据迁移失败")
		return
	} else {
		fmt.Println("数据迁移成功")
	}
}
